package com.s.core.root.strategy.factor;

import com.s.core.root.D;

public class Yd {
    /**
     * 计算异动
     */
    public static boolean isYd(D d, boolean superActiveZt) {
        if (d.isContainsZt(4, true)) {
            return true;
        }
        if (d.ztCounts(10, false) >= 2) {
            return true;
        }

        if (superActiveZt) {
            if (d.isContainsSy(4, new float[]{0.9f, 0.8f})) {
                return true;
            }
        } else {
            if (d.isContainsSy(4, new float[]{0.9f})) {
                return true;
            }
        }
        if (d.isNot10cm() && d.isContainsSy(4, new float[]{0.8f, 0.7f})) {
            return true;
        }
        if (d.isContainsZt(15, true)) {
            if (superActiveZt) {
                if (d.isContainsSy(4, new float[]{0.8f, 0.7f, 0.6f, 0.5f})) {
                    return true;
                }
            } else {
                if (d.isContainsSy(4, new float[]{0.8f, 0.7f})) {
                    return true;
                }
            }
        }
        if (d.isContainsZt(10, true)) {
            if (d.isContainsSy(4, new float[]{0.6f, 0.5f})) {
                return true;
            }
        }
        return false;
    }
}
